package com.yango.teach.service;

import com.yango.teach.entity.Video;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程视频 服务类
 * </p>
 *
 * @author LiDingYin
 * @since 2021-07-24
 */
public interface VideoService extends IService<Video> {

    //根据id查询该章节下是否有小节，如果有，提示不能删除
    boolean getCountByChapterId(String id);

    //根据id删除课时
    boolean removeVideoById(String id);

    //根据课程id删除课时
    boolean removeVideoByCourseId(String courseId);
}
